<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>
<!-- 错误的示例  ！！！！！！！！！！！！！！ -->
<body>
    <script src="../框架相关的js/vue.js"></script>
    <div id="app">
        <input v-model.lazy="msg" @change="ma">
    </div>




    <script>
        new Vue({
            el: '#app',
            data: {
              msg:null
           },
           watch:{
               'msg'(){
                   console.log(1111);
               }
           },
           methods: {
               ma(){
                   console.log(this.msg,'这是哈');
               }
           },

        })

    </script>
</body>

</html>